home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news3.noc.netcom.net!zdc!zippo!usenet
- From: Jim McFarland <jgm6@orkand.em.cdc.gov>
- Subject: Re: C to C++
- Content-Type: text/plain; charset=us-ascii
- Sender: usenet@news.zippo.com
- Content-Transfer-Encoding: 7bit
- Nntp-Posting-Host: 158.111.166.77
- Organization: The Orkand Corporation
- Message-ID: <DKnxBv.Gnq@news.zippo.com>
- References: <30EA2EA0.86C@comcept.ab.ca>
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- Mime-Version: 1.0
- Date: Thu, 4 Jan 1996 15:21:31 GMT
-
- The BFP <bfp@comcept.ab.ca> wrote:
- >Hey,
- >
- >I am new at this stuff, and I am trying to learn C++. I have looked at C
- >source code, and incredibly Simple programs like
- >
- ><#include stdio.h>
- >
- >printf("Hi")
- >
- >Will not compile for C++. I am lame, yes, I kn ow but, hey, Nobody is
- >perfect, anyways, could somebody help me :)
- >
- >Please :)
-
- First of all, this "program" would NOT compile in C either. You have no
- main() function. If you put the printf() in main(), it would compile as
- C or C++.
-
- Jim
-
-